package chapter2;
import java.util.Date;
public class compute {
final double radius = 10.5;
public static void main(String[] args) {
	compute main1 = new compute();
	double area = main1.radius*main1.radius*Math.PI;
	System.out.println(area);
	
	Date date = new Date();
	System.out.println("当前时间是："+date.toString());
	int aa = (int)(Math.random()*1000);
	int bb = aa/100;
	int cc = aa%100/10;
	int dd = aa%10;
	System.out.println("该数"+aa+"的所有数字的和为"+(bb+cc+dd));
}
}
